package com.johnny.nob.domain.business;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import com.johnny.core.hibernate.orm.IdEntity;

@Entity
public class Bonus extends IdEntity {
	private Item bonusItem;
	private String productName;
	private String quantity;
	private Uom unit;
	private Integer bonusQuantity;
	private long refRecId;

	@ManyToOne
	public Item getBonusItem() {
		return bonusItem;
	}

	public void setBonusItem(Item bonusItem) {
		this.bonusItem = bonusItem;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getQuantity() {
		return quantity;
	}

	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}

	@ManyToOne
	public Uom getUnit() {
		return unit;
	}

	public void setUnit(Uom unit) {
		this.unit = unit;
	}

	public Integer getBonusQuantity() {
		return bonusQuantity;
	}

	public void setBonusQuantity(Integer bonusQuantity) {
		this.bonusQuantity = bonusQuantity;
	}

	public long getRefRecId() {
		return refRecId;
	}

	public void setRefRecId(long refRecId) {
		this.refRecId = refRecId;
	}

}
